
waitUntil{ HumanObjectiveCompleted };


playMusic  "MusicObjDestroyed";
20 fadeMusic 0;
titleText ["Objectif detruit !", "PLAIN"];

_hndl = ppEffectCreate ["DynamicBlur", 400];
_hndl ppEffectEnable true;
_hndl ppEffectAdjust [0.0];
_hndl ppEffectCommit 1;

_camera = "camera" camCreate getPos Objective;//[0,0,200];

_objPos=getPos Objective;

_camera camPrepareTarget  (getPos Objective);//[(_civilPosCam select 0),(_civilPosCam select 1),(_civilPosCam select 2)+1.5];
//
	
_camera camSetFov 0.700;
_camera cameraEffect ["internal","back"];
_camera camCommitPrepared 0;

waitUntil { camCommitted _camera };
showCinemaBorder true;

_camera camPrepareRelPos  [0,-10,5];	
_camera camCommitPrepared 0;
lastTime=time;

_rayon=10.0;

_lastTime=time;
TankMap mapCenterOnCamera true;
_CamAngle=0;

while{_CamAngle<360}do{
	
	
	_xPos=(cos (_CamAngle+270))*((10))+(_objPos select 0);
	_yPos=(sin (_CamAngle+270))*((10))+(_objPos select 1);
	
	_camera camPreparePos  [_xPos,_yPos,(7)];	
	
	_camera camCommitPrepared 0.5;
	sleep(1/50);
	_CamAngle=_CamAngle+2;
	
	
};

ppEffectDestroy _hndl;
player cameraEffect["terminate","back"];
camDestroy _camera;


